//
//  YZComplicationCell.m
//  kuaiyi
//
//  Created by WGP on 16/5/4.
//
//

#import "YZComplicationCell.h"
#import "YZComplicationModel.h"

@interface YZComplicationCell ()


@end


@implementation YZComplicationCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        self.accessoryType = UITableViewCellAccessoryNone;
    }
    return self;
}

-(void)setModel:(YZComplicationModel *)model
{
    _model = model;
    self.textLabel.text = model.complication_name;
    if (model.isSelected) {
        self.accessoryType = UITableViewCellAccessoryCheckmark;
    }else
    {
        self.accessoryType = UITableViewCellAccessoryNone;
    }
}

@end
